<template>
	<view>
		<view class="list">
			<view class="item">
				<view class="address">
					<view class="t">
						<text>张星星 </text>
						<text style="font-size: 24rpx; margin-left: 25rpx;">17621111111</text>
					</view>
					<view class="b">辽宁省沈阳市铁西路30号</view>
				</view>
				<view class="btns fcs">
					<view class="l">
						<u-radio-group active-color="#F3060D">
							<u-radio>
								设为为默认地址
							</u-radio>
						</u-radio-group>
					</view>
					<view class="r">
						<u-button shape="circle" :custom-style="customStyle" @click="toPath">编辑</u-button>
					</view>
				</view>
			</view>
		</view>

		<view class="btn">
			<view class="bc-btn-l fcc" @click="toPath">
				添加收获地址
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				customStyle: {
					backgroundColor: '#F3060D',
					color: '#FFF',
					width: '167rpx',
					height: '64rpx'
				},
			};
		},
		methods: {
			toPath() {
				uni.navigateTo({
					url: '/pages/address/edit'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn {
		position: fixed;
		bottom: 38rpx;
		width: 100%;
		left: 0;

		.bc-btn-l {
			color: #FFF;
			width: 676rpx;
			height: 88rpx;
			margin: 0 auto;
			background: linear-gradient(147.27deg, #F1714E 0%, #E93E30 100%);
		}
	}

	.item {
		background-color: #FFF;
		border-radius: 10rpx;
		padding: 23rpx 30rpx;

		.btns {
			margin-top: 20rpx;
		}

		.address {
			padding-bottom: 20rpx;
			border-bottom: 1rpx dashed #E6E6E6;

			.b {
				margin-top: 11.5rpx;
				color: #9A9A9A;
				font-size: 26rpx;
				font-weight: 400;
			}

			.t {
				font-size: 30rpx;
				font-weight: 500;
				color: #383838;
			}
		}
	}
</style>
<style lang="scss">
	page {
		background-color: #F4F6F6;
		padding: 20rpx;
		box-sizing: border-box;
	}
</style>